<include file="Common/header" />


<div class="app">

    <!-- top header -->
    <include file="Common/header_nav" />
    <!-- /top header -->


    <section class="layout">
        <!-- sidebar menu -->
        <include file="Common/left_aside" />
        <!-- /sidebar menu -->

        <!-- main content -->
        <section class="main-content">

            <!-- content wrapper -->
            <div class="content-wrap">
                <div class="row">
                    <div class="col-md-6 col-md-offset-3">
                        <section class="panel panel-info">
                            <header class="panel-heading">升级为组织测评者（进行团体评测）</header>
                            <div class="panel-body">
                                <div class="col-lg-8 col-lg-offset-2">
                                    <section class="panel">
                                        <header class="panel-heading">填写基本的组织信息</header>
                                        <div class="panel-body">
                                            <form role="form">
                                                <div class="form-group">
                                                    <label for="orgnizer_name">您的组织名称</label>
                                                    <input type="text" class="form-control" id="orgnizer_name" placeholder="输入组织名">
                                                </div>
                                                <div class="form-group">
                                                    <label for="orgnizer_info">简介</label>
                                                    <textarea rows="5" class="form-control" id="orgnizer_info"></textarea>

                                                </div>

                                                <a class="btn btn-default" id="submit">提交</a>
                                            </form>
                                        </div>
                                    </section>
                                </div>
                            </div>
                        </section>
                    </div>
                </div>


            </div>
            <!-- /content wrapper -->

        </section>
        <!-- /main content -->

    </section>

</div>



<include file="Common/footer" />


<script>
    $(document).ready(function(){
        $(".main-navigation ul").find('li').removeClass('active');
        $(".main-navigation ul").find('li:eq(5)').addClass('active');
        $("#submit").click(function(){
            $.ajax({
                url:"__SELF__",
                dataType:"json",
                type:"POST",
                data:{
                    orgnizer_info:$("#orgnizer_info").val(),
                    orgnizer_name:$("#orgnizer_name").val(),
                    class_info:"[]"
                },
                success:function(data){
                    if (data.code == 1){
                        alert(data.msg);
                    }
                    else{
                        alert(data.msg);
                    }
                },
                error:function(jqXHR){
                    alert("提交错误"+jqXHR.status);
                }
            })
        });
    });
</script>